---
title: "Advanced Dashboarding"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
social: ["menu"]
source_code: embed
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
library(palmerpenguins)
library(plotly)
library(DT)
library(fontawesome)
data("penguins")
```
Plots
=======================================================================
Column {data-width=65}
-----------------------------------------------------------------------
### Scatter plot of bill length and depth
```{r}
a <-
penguins |>
ggplot(aes(bill_length_mm, bill_depth_mm, colour = species)) +
geom_point()
ggplotly(a)
```
Column {data-width=35}
-----------------------------------------------------------------------
### Chart B
```{r}
penguins |>
ggplot(aes(body_mass_g, sex, fill = sex)) +
geom_boxplot()
```
### Chart C
```{r}
penguins |>
ggplot(aes(flipper_length_mm, fill = species)) +
geom_histogram() +
facet_wrap(~ species)
```
Data
=====================================================================
```{r}
penguins |>
datatable(
extensions = "Buttons",
options = list(dom = "Blfrtip",
buttons = c("copy", "csv", "excel", "pdf", "print"))
)
```